package com.schematic.flixel.donquicoco
{
	import org.flixel.FlxSprite;

public class Donki extends FlxSprite
{
    //--------------------------------------------------------------------------
    //
    // Constructor
    //
    //--------------------------------------------------------------------------

    /**
     * Creates a new instance of this class.
     */
    public function Donki(x:Number = 0, y:Number = 0)
    {
        super(x, y);

        loadGraphic(Skins.DONKI, true, false, 96,96, true);
        var frameRate:int = 8;
		
        addAnimation(
            "hitFloorLeftRight",
            [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,11,10,9,8,7,6,5,4,3,2,1],
            frameRate,
            true
         );
		
		addAnimation(
			"hitChestLeftRight",
			[15,14,13,12,13,14,15,16,17,18,19,18,17,16],
			frameRate,
			true
		);

    }
	    
    //--------------------------------------------------------------------------
    //
    //  Methods
    //
    //--------------------------------------------------------------------------
	
    //----------------------------------
    //  HitFloor 
    //----------------------------------
    /**
     * makes DonKingKo Hit floor
     */
    public function hitFloorLeftRight():void
    {
        	play("hitFloorLeftRight");
    } 
	
	public function hitChestLeftRight():void
	{
		play("hitChestLeftRight");
	} 
	
}
}